package cn.bdqn.pn.service.schedule;

import cn.bdqn.pn.pojo.schedule.Seat;

import java.sql.SQLException;
import java.util.List;

/**
 * 座位
 */
public interface SeatService {

    /**
     * 增加座位信息
     * @param seat
     * @return
     * @throws SQLException
     */
    public boolean addSeatInfo(Seat seat) throws SQLException;


    /**
     * 根据场地id查询座位信息
     * @param placeId
     * @return
     * @throws SQLException
     */
    public List<Seat> seatlist(Integer placeId)throws SQLException;

    /**
     * 根据座位id查询座位信息
     * @param seatId
     * @return
     * @throws SQLException
     */
    public Seat findBySeatId(Integer seatId)throws SQLException;

    /**
     * 根据座位id修改座位信息
     * @param seat
     * @return
     * @throws SQLException
     */
    public boolean updateSeatInfo(Seat seat) throws SQLException;
}
